import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import '@renderer/assets/css/index.less'
import 'element-plus/dist/index.css'
import requestApi from '@renderer/api'
import { createPinia } from 'pinia'
const pinia = createPinia()
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import router from '@renderer/router/router'
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(pinia)
app.use(ElementPlus, { locale: zhCn })
app.use(router)
app.config.globalProperties.requestApi = requestApi
app.mount('#app')
